package com.jsu.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.example.model.activity.pojo.Activity;
@Mapper
public interface ActivityMapper extends BaseMapper<Activity> {
    @Select("Select SUM(likes) from activity")
    Integer countLikes();

    @Select("Select SUM(subscriber_num) from activity")
    Integer countSubs();

    @Select("Select SUM(looking) from activity")
    Integer countViews();
}